#ifndef BALL_H
#define BALL_H
#include <QLabel>
#include "plank.h"
#include <QDebug>
class ball: public QObject{
    Q_OBJECT
public:
    double r;
    double bx;
    double by;
    double speedx;
    double speedy;
    bool IsStart;
    Plank * pla;
    QLabel * Bla;
    ball(double,double,double,QLabel *,Plank*);
    void start();
    void setStyle(int n);
    double getX();
    double getY();
    double getR();
    void finish();
private slots:
    void moveFollowPlank(double x);
    void moveInBox();
    void debug();
    void end();


};

#endif // BALL_H
